#include <iostream>

#include "car.h"
#include "factory.h"

using namespace std;

int main()
{
	Car *pCar;
	QQCarFactory qqFactory;
	JiliCarFactory jiliFactory;
	StandardCarFactory<QQCar> standardQQFactory;
	StandardCarFactory<JiliCar> standardJiliFactory;

	pCar = qqFactory.createCar();
	pCar->show();
	delete pCar;

	pCar = jiliFactory.createCar();
	pCar->show();
	delete pCar;

	pCar = standardQQFactory.createCar();
	pCar->show();
	delete pCar;

	pCar = standardJiliFactory.createCar();
	pCar->show();
	delete pCar;

	return 0;
}
